﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

  <title>Fetal Echo Z-Score Smackdown!</title>
  <meta name="description" content="Comparing fetal echo z-score prediction equations published by Boston Children's Hopsital and The Royal Brompton Hospital" />
    <script src="js/excanvas.min.js" type="text/javascript"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type=
  "text/javascript">
</script>

    <script src="js/ZUtils.js" type="text/javascript"></script>
    <script src="js/jquery.flot.js" type="text/javascript"></script>
    <script src="js/fetal_plots.js" type="text/javascript"></script>
  <script src="js/fetal_smackdown.js" type="text/javascript"></script>
  <link href="style/screen.css" rel="stylesheet" type="text/css" />
  <link href="style/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>

<body>
  <div class="container">
    <div id="header" class="span-18 last">
      <h2>Fetal Echo Z-Score Smackdown: Boston vs. Royal Brompton</h2>
      <hr id="top" />
    </div>

    <div id="main" class="span-18 last">
      <table summary="Fetal Echo Z-Scores">
        <tr>
          <th class="right" colspan="1">Select EGA :</th>

          <td colspan="3"> <select id="Weeksddl" name="D1">
        <option value="15">
          15 weeks
        </option>

        <option value="16">
          16 weeks
        </option>

        <option value="17">
          17 weeks
        </option>

        <option value="18" selected="selected">
          18 weeks
        </option>

        <option value="19">
          19 weeks
        </option>

        <option value="20">
          20 weeks
        </option>

        <option value="21">
          21 weeks
        </option>

        <option value="22">
          22 weeks
        </option>

        <option value="23">
          23 weeks
        </option>

        <option value="24">
          24 weeks
        </option>

        <option value="25">
          25 weeks
        </option>

        <option value="26">
          26 weeks
        </option>

        <option value="27">
          27 weeks
        </option>

        <option value="28">
          28 weeks
        </option>

        <option value="29">
          29 weeks
        </option>

        <option value="30">
          30 weeks
        </option>

        <option value="31">
          31 weeks
        </option>

        <option value="32">
          32 weeks
        </option>

        <option value="33">
          33 weeks
        </option>

        <option value="34">
          34 weeks
        </option>

        <option value="35">
          35 weeks
        </option>

        <option value="36">
          36 weeks
        </option>

        <option value="37">
          37 weeks
        </option>

        <option value="38">
          38 weeks
        </option>

        <option value="39">
          39 weeks
        </option>

        <option value="40">
          40 weeks
        </option>
      </select></td>

        </tr>

        <tr>
          <th>Output:</th>

          <th colspan="3">
          <label for="out-z">Z-Score </label><input name="output" id="out-z" type="radio" value="zscore" class="radio" checked="checked" />
          <label for="out-mean">Mean </label><input name="output" id="out-mean" type="radio" value="mean" class="radio" />
          <label for="out-range">Range </label><input name="output" id="out-range" type="radio" value="range" class="radio" />
          </th>

        </tr>

        <tr>
          <th>Site</th>

          <th>Measured</th>

          <th id="Boston" title="McElhinney et al., Circ. 2009">&nbsp;&nbsp;&nbsp;&nbsp;Boston&nbsp;&nbsp;&nbsp;&nbsp;</th>

          <th id="Royal" title="Schneider et al., Ultrasound Obstet Gynecol. 2005">Royal Brompton</th>
        </tr>

        <tr>
          <td class="label"><label for="txtmv">Mitral Valve:</label></td>

          <td><input id="txtmv" type="text" onchange="CalculateZScore(this.value, 'mv' )"
          class="inputValue" /></td>

          <td id="mvB" class="results">&nbsp;</td>

          <td id="mvRB" class="results">&nbsp;</td>
        </tr>

        <tr>
          <td class="label"><label for="txtlvMinor">LV Minor:</label></td>

          <td><input id="txtlvMinor" type="text" onchange=
          "CalculateZScore(this.value, 'lvMinor')" class="inputValue" /></td>

          <td id="lvMinorB" class="results">&nbsp;</td>

          <td id="lvMinorRB" class="results">&nbsp;</td>
        </tr>

        <tr>
          <td class="label"><label for="txtaov">Aortic Valve:</label></td>

          <td><input id="txtaov" type="text" onchange=
          "CalculateZScore(this.value, 'aov')" class="inputValue" /></td>

          <td id="aovB" class="results">&nbsp;</td>

          <td id="aovRB" class="results">&nbsp;</td>
        </tr>

        <tr>
          <td class="label"><label for="txtaao">AAO:</label></td>

          <td><input id="txtaao" type="text" onchange=
          "CalculateZScore(this.value, 'aao')" class="inputValue" /></td>

          <td id="aaoB" class="results">&nbsp;</td>

          <td id="aaoRB" class="results">&nbsp;</td>
        </tr>

        <tr>
          <td>&nbsp;</td>

          <td><input id="btnCalculateZ" type="button" value="update" onclick=
          "CalculateZScores()" class="button" /></td>
        </tr>

        <tr>
          <td>&nbsp;</td>

          <td><a class="reset" href="#">reset</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="span-18 last">
    <h3>Mitral Valve Reference Data</h3>
    </div>
    <div id="mv-placeholder" class="span-18 last placeholder">
    </div>
    <div class="span-18 last">
    <p id="mv-choices" class="choices">Show:<br /></p>
    </div>
    <div class="span-18 last">
    <h3>Aortic Valve Reference Data</h3>
    </div>
    <div id="aov-placeholder" class="span-18 last placeholder">
    </div>
    <div class="span-18 last">
    <p id="aov-choices" class="choices">Show:<br /></p>
    </div>
    <div id="references" class="span-18 last">
      <h3>References</h3>

      <dl>
        <dt id="Boston_ref">Boston:</dt>

        <dd><a href=
        "http://www.ncbi.nlm.nih.gov/pubmed/19786635">
        Predictors of technical success and postnatal biventricular outcome after in
        utero aortic valvuloplasty for aortic stenosis with evolving hypoplastic left
        heart syndrome.</a><br />
        McElhinney DB, Marshall AC, Wilkins-Haug LE, Brown DW, Benson CB, Silva V,<br />
        Marx GR, Mizrahi-Arnaud A, Lock JE, Tworetzky W.<br />
        Circulation. 2009 Oct 13;120(15):1482-90. Epub 2009 Sep 28.</dd>
        <dt id="Royal_ref">Royal Brompton:</dt>
        <dd><a href="http://www.ncbi.nlm.nih.gov/pubmed/16254878">Development of Z-scores for fetal cardiac dimensions from echocardiography.</a><br />
        Schneider C, McCrindle BW, Carvalho JS, Hornberger LK, McCarthy KP, Daubeney PE.<br />
        Ultrasound Obstet Gynecol. 2005 Nov;26(6):599-605.</dd>
      </dl><!-- end ref div -->
    </div><!-- end container div -->
  </div><script type="text/javascript">
            function CalculateZScores() {
                $('.inputValue').change();
            }
            
            $('#Weeksddl').change(function() {
                CalculateZScores();
            });

            $('a.reset').click(function() {
                //clear selects
                $('#Weeksddl').val('18');
                $('#out-z').attr('checked', 'checked');
                //clear measurement inputs
                $('.inputValue').val('').change();
            });
            //test
            $('input[name=output]:radio').click(function() {
            CalculateZScores();
        });

        
  </script>
</body>
</html>
